//
//  FeedSetViewController.h
//  Bespoke
//
//  Created by Cheng on 12/8/8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BK_Enviroment.h"
#import "TWSignedRequest.h"
#import "OAuth+Additions.h"
#import <Twitter/Twitter.h>
#import <Accounts/Accounts.h>
#import "InstagramViewController.h"
#import "SelectMyPhoto.h"
#import "ChangePassword.h"
#import "QuestionView.h"
#import "FunctionAlertView.h"

@class FeedSetViewController;

@protocol FeedSetViewControllerDelegate <NSObject>

-(void)FeedSetViewControllerDelegateDidAccount:(FeedSetViewController *)controller;
-(void)FeedSetViewControllerDelegateDidMyBooks:(FeedSetViewController *)controller;
-(void)FeedSetViewControllerDelegateDidStream:(FeedSetViewController *)controller;
-(void)FeedSetViewControllerDelegateDidLoadingStream:(FeedSetViewController *)controller;
-(void)FeedSetViewControllerDelegateDidLogoScreen:(FeedSetViewController *)controller;

@end

@interface FeedSetViewController : UIViewController <InstagramViewControllerDelegate, UINavigationControllerDelegate, UITextFieldDelegate, UIAlertViewDelegate, SelectMyPhotoDelegate, ChangePasswordDelegate, UIImagePickerControllerDelegate, UIPopoverControllerDelegate, QuestionViewDelegate, FunctionAlertViewDelegate>
{
    IBOutlet UILabel *Lab_yourName;
    IBOutlet UILabel *Lab_yourEmail;
    IBOutlet UILabel *Lab_GoogleKeyword;
    IBOutlet UISwitch *SW_FaceBook;
    IBOutlet UISwitch *SW_Twitter;
    IBOutlet UISwitch *SW_Tumblr;
    IBOutlet UISwitch *SW_Instagram;
    IBOutlet UIScrollView *SVw_GoogleResult;
    IBOutlet UIScrollView *SVw_GoogleSelected;
    IBOutlet UIScrollView *SVw_RecommendedFeeds;
    IBOutlet UITextField *Tf_GoogleReaderSearch;
    IBOutlet UIButton *Bt_Setting;
    IBOutlet UIButton *Bt_Continue;
    IBOutlet UIButton *Bt_ChangePassword;
    IBOutlet UIButton *Bt_yourPhoto;
    IBOutlet UIView *Vw_SearchForFeeds;
    IBOutlet UIImageView *IVw_FeedStatus;
    
    IBOutlet ChangePassword *Vw_ChangePassword;
    IBOutlet FunctionAlertView *Vw_FunctionAlertView;
}

@property (nonatomic, strong) UILabel *Lab_yourName;
@property (nonatomic, strong) UILabel *Lab_yourEmail;
@property (nonatomic, strong) UILabel *Lab_GoogleKeyword;
@property (nonatomic, strong) UISwitch *SW_FaceBook;
@property (nonatomic, strong) UISwitch *SW_Twitter;
@property (nonatomic, strong) UISwitch *SW_Tumblr;
@property (nonatomic, strong) UISwitch *SW_Instagram;
@property (nonatomic, strong) UIScrollView *SVw_GoogleResult;
@property (nonatomic, strong) UIScrollView *SVw_GoogleSelected;
@property (nonatomic, strong) UIScrollView *SVw_RecommendedFeeds;
@property (nonatomic, strong) UITextField *Tf_GoogleReaderSearch;
@property (nonatomic, strong) UIButton *Bt_Setting;
@property (nonatomic, strong) UIButton *Bt_Continue;
@property (nonatomic, strong) UIButton *Bt_ChangePassword;
@property (nonatomic, strong) UIButton *Bt_yourPhoto;
@property (nonatomic, strong) UIView *Vw_SearchForFeeds;
@property (nonatomic, strong) UIImageView *IVw_FeedStatus;

@property (nonatomic, strong) UIPopoverController *Ctr_poper;

@property (strong, nonatomic) ACAccountStore *accountStore;
@property (strong, nonatomic) NSArray *accounts;
@property (nonatomic, strong) NSMutableArray *Array_AccountInfo;

@property (nonatomic, assign) int AddCellTagMax;

@property (nonatomic, strong) BK_Enviroment *BK_En_object;
@property (nonatomic, strong) SelectMyPhoto *Vw_PhotoList;
@property (nonatomic, strong) ChangePassword *Vw_ChangePassword;
@property (nonatomic, strong) QuestionView *Vw_QuestionView;
@property (nonatomic, strong) FunctionAlertView *Vw_FunctionAlertView;

@property (nonatomic, weak) id <FeedSetViewControllerDelegate> delegate;

-(IBAction)FacebookLogin:(id)sender;
-(IBAction)TwitterLogin:(id)sender;
-(IBAction)OpenMyStream:(id)sender;
-(IBAction)OpenAccount:(id)sender;
-(IBAction)OpenMyBook:(id)sender;
-(IBAction)ConitunePressed:(id)sender;
-(IBAction)MyPhotoPressed:(id)sender;
-(IBAction)PasswordPressed:(id)sender;
-(IBAction)SignOutPressed:(id)sender;
-(IBAction)showPhotoLib:(id)sender;
-(IBAction)InstagramLogin:(id)sender;
-(IBAction)TumblrPressed:(id)sender;
-(IBAction)RecommendedFeedPressed:(id)sender;
-(IBAction)SearchForFeedPressed:(id)sender;
- (IBAction)SearchGoogleReaderPressed:(id)sender;
-(IBAction)QuestionPressed:(id)sender;

@end
